package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 * @author hua`
 * @since 2022-12-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_product_stock_rack")
public class ProductStockRackDo extends Model<ProductStockRackDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * t_product_stock主键
     */
    @TableField("stock_id")
    private Long stockId;

    /**
     * 库位id
     */
    @TableField("rack_id")
    private Long rackId;

    @TableField("good_quantity")
    private Integer goodQuantity;

    @TableField("bad_quantity")
    private Integer badQuantity;

    @TableField("good_lock_quantity")
    private Integer goodLockQuantity;

    @TableField("bad_lock_quantity")
    private Integer badLockQuantity;

    @TableField("store")
    private Integer store;

    @TableField("create_time")
    private Date createTime;

    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
